package com.example.service;

import com.example.dao.StudentDAO;
import com.example.entity.Student;

import java.util.List;
public class StudentService {
    private StudentDAO studentDAO = new StudentDAO();
    public List<Student> getStudentsByPage(int pageNum) {
        return studentDAO.getStudentsByPage(pageNum);
    }
    public int getTotalCount() {
        return studentDAO.getTotalCount();
    }
}
